package di;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.Resource;
import org.springframework.stereotype.Component;

@Component
public class ResourceBean {

    @Autowired
    private Resource resource;

//    public ResourceBean(Resource resource) {
//        this.resource = resource;
//    }

    public Resource getResource() {
        return resource;
    }

    public void setResource(Resource resource) {
        this.resource = resource;
    }

    public void test(){
        System.out.println(resource.getFilename());
    }
}
